<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateMessageCodeTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('message_code', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('session_id', 28)->nullable()->comment('session_id');
			$table->string('phone', 11)->comment('电话');
			$table->string('code', 5)->comment('验证码');
			$table->dateTime('send_time')->comment('送发时间');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('message_code');
	}

}
